﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;

namespace Consejo.Monitoring.BusinessObjects
{
    [Serializable]
    public class ResourceStatus : IStatusItem
    {
        private string resourceId = string.Empty;
        private DateTime timeStamp = DateTime.Now.ToUniversalTime();
        private string statusItemName = string.Empty;
        private double resourceValue = 0.00;

        public string ID
        {
            get { return resourceId; }
            set { resourceId = value; }
        }

        public DateTime TimeStamp
        {
            get { return timeStamp; }
            set { timeStamp = value; }
        }

        public string StatusItemName
        {
            get { return statusItemName; }
            set { statusItemName = value; }
        }

        public object Result
        {
            get { return (object)resourceValue; }
            set { resourceValue = Convert.ToInt32(value); }
        }

        public ResourceStatus(string _resourceId, DateTime _timeStamp, double _resourceValue)
        {
            resourceId = _resourceId;
            timeStamp = _timeStamp;
            resourceValue = _resourceValue;
        }

        public ResourceStatus(string _resourceId, double _resourceValue)
        {

            resourceId = _resourceId;
            resourceValue = _resourceValue;
            
            }

        }
    }
